var a = getApp();

Page({
    data: {
        shipin: "",
        navList: [],
        chaping: "",
        banner: ""
    },
    onLoad: function() {
        var a = this;
        wx.getStorageSync("wxapp").chaping;
        a.setData({
            banner: wx.getStorageSync("wxapp").videoad
        }), a.getNavigates();
    },
    getNavigates: function() {
        var t = this;
        wx.request({
            url: "https://dou.j391.com/dongman/find.php",
            timeout: 3e3,
            data: {
                nav: "sdk_more",
                appid: a.globalData.appid
            },
            success: function(a) {
                1 == a.data.code && (t.setData({
                    navList: a.data.data
                }), wx.setStorage({
                    key: "find_nav_item_list",
                    data: a.data.data
                }));
            }
        });
    },
    onPullDownRefresh: function() {
        this.getNavigates();
    },
    followMe: function() {
        wx.previewImage({
            urls: [ a.globalData.followMeImg ]
        });
    }
});